<%@ page language="java" pageEncoding="utf-8"%>

<!--/*** sumo CSS样式 修改**/-->
<style>
    .SumoSelect {width: 220px;height: 27px;color: rgb(65, 137, 203);font-size: 13px;}
    .SumoSelect label {font-size: 13px;}
    .SumoSelect span {font-size: 13px;}
    .SumoSelect > p {height: 27px;}
    .SumoSelect .select-all {height: 36px;}
</style>


<!--/*** 控件HTML标签 **/-->
<div class="col-md-12" style="margin-top:10px;padding: 0 0 0 5px;">
    <div class="col-md-3" style="padding: 0;">
        <label style="color: rgb(65, 137, 203);font-size: 12px;padding: 0px;margin: 0px;">设备代码:</label>
    </div>
    <div class="col-md-9">
        <select id="toolIdSumo" multiple="multiple"></select>
    </div>
</div>



<script>
//    $(document).ready(function () {
        $("#toolIdSumo").SumoSelect({
            search: true,
            searchText: 'Enter here.',
            captionFormat: '已选择：{0}(项)',
            selectAll:true,
            captionFormatAllSelected: "全选",
            okCancelInMulti: true,
            locale :  ['确定', '取消', '全选'],
            isClickAwayOk: true,
        });

        
        var report_name = "<c:out value='${reportTitle}'/>";
        function iniToolIdFunc(){
            var inTrxObj = {
                report_name : $.trim(report_name),
                fab_id      : $.trim($("#fabIdSumo").val()),
                bay_id      : $.trim($("#bayIdSumo").val()),
                ope_id      : $.trim($("#opeIdSumo").val()),
                toolg_id    : $.trim($("#toolgIdSumo").val()),
                tool_type   : $.trim($("#toolTypeRadio input:checked").val())
            };
            comAddSelectValueFnc("#toolIdSumo","TOOL", inTrxObj,false,false);
            $('#toolIdSumo')[0].sumo.reload();
        };
        iniToolIdFunc();
        $("#fabIdSumo").change(iniToolIdFunc);
        $("#bayIdSumo").change(iniToolIdFunc);
        $("#opeIdSumo").change(iniToolIdFunc);
        $("#toolgIdSumo").change(iniToolIdFunc);
        $("#toolTypeRadio input[type=radio][name=toolType]").change(iniToolIdFunc);
//    });
</script>